package com.meitianhui.convenitenbuy.module.home.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.meitianhui.convenitenbuy.R;
import com.meitianhui.convenitenbuy.module.home.model.bean.FightGroupAddress;

import java.util.List;

/**
 * Created by Administrator on 2017/11/18.
 */

public class FightGroupAddressAdapter extends BaseQuickAdapter<FightGroupAddress.Convenient,BaseViewHolder> {
    public FightGroupAddressAdapter(@Nullable List<FightGroupAddress.Convenient> data) {
        super(R.layout.item_fight_group_address, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, FightGroupAddress.Convenient item) {
        helper.setText(R.id.tv_store_name,item.getStores_name());
        helper.setText(R.id.tv_store_address,item.getAddress());
        helper.setText(R.id.tv_store_distance,item.getDistance()+"米");
    }


}
